using Vin.Tool.Attributes;

namespace Vin.Extension.Framework.Options.Dto;

[Option("VinFramework:Dto:Serializer")]
public class DtoSerializerOption
{
    /// <summary>
    /// 在路由下 忽略Dto的属性
    /// Key: 属性名称
    /// Value：路由匹配
    /// </summary>
    public List<PropertyRule> RouteIgnoreProperties { get; set; } = new();
    
    public class PropertyRule
    {
        /// <summary>
        /// 属性名称
        /// </summary>
        public List<string> Properties { get; set; } = new();

        /// <summary>
        /// 路由匹配
        /// </summary>
        public List<string> Rules { get; set; } = new();
    }
}